<php>
	$this->display(tpl('head'));
	$mob_is_yzm[intval($data['mob']['is_yzm'])] ='checked';
	$mob_is_give[intval($data['mob']['is_give'])] ='checked';
	$email_is_yzm[intval($data['email']['is_yzm'])] ='checked';
	$email_is_give[intval($data['email']['is_give'])] ='checked';
	$main_is_yzm[intval($data['main']['is_yzm'])] ='checked';
	$main_is_give[intval($data['main']['is_give'])] ='checked';
</php>
<fieldset class="layui-elem-field layui-field-title">
	<legend>认证设置</legend>
</fieldset>
<form class="layui-form" method="post">
	<div class="layui-tab">
		<ul class="layui-tab-title">
			<li class="layui-this">手机认证设置</li>
			<li>Email认证管理</li>
			<li>主体认证设置</li>
			<php> hook_listen('admin_renzheng_setting_tpl_sort',$data) </php>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<table class="layui-table  my-tabel">
					<tbody>
						<tr>
							<td>是否启用验证码</td>
							<td>
								<input name="web[mob][is_yzm]" value="1" type="radio" title="开启验证码" {{$mob_is_yzm['1']}}>
								<input name="web[mob][is_yzm]" value="0" type="radio" title="关闭验证码"   {{$mob_is_yzm['0']}}>
								<p>发送短信前，最好开启，防止短信轰炸</p>
							</td>
						</tr>
						<tr>
							<td>认证成功赠送</td>
							<td>
								<input name="web[mob][is_give]" value="0" type="radio" title="不赠送" {{$mob_is_give['0']}}>
								<input name="web[mob][is_give]" value="1" type="radio" title="积分"   {{$mob_is_give['1']}}>
								<input name="web[mob][is_give]" value="2" type="radio" title="人民币" {{$mob_is_give['2']}}>
								<p>如果赠送人民币，必须安装人民币插件</p>
							</td>
						</tr>
						<tr>
							<td>赠送数量</td>
							<td>
								<input name="web[mob][give]" class="layui-input" type="number" value="{{$data['mob']['give']}}">
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="layui-tab-item">
				<table class="layui-table  my-tabel">
					<tbody>
						<tr>
							<td>是否启用验证码</td>
							<td>
								<input name="web[email][is_yzm]" value="1" type="radio" title="开启验证码" {{$email_is_yzm['1']}}>
								<input name="web[email][is_yzm]" value="0" type="radio" title="关闭验证码"   {{$email_is_yzm['0']}}>
							</td>
						</tr>
						<tr>
							<td>认证成功赠送</td>
							<td>
								<input name="web[email][is_give]" value="0" type="radio" title="开启验证码" {{$email_is_give['0']}}>
								<input name="web[email][is_give]" value="1" type="radio" title="积分"   {{$email_is_give['1']}}>
								<input name="web[email][is_give]" value="2" type="radio" title="人民币" {{$email_is_give['2']}}>
							</td>
						</tr>
						<tr>
							<td>赠送数量</td>
							<td>
								<input name="web[email][give]" class="layui-input" type="number" value="{{$data['email']['give']}}">
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="layui-tab-item">
				<table class="layui-table  my-tabel">
					<tbody>
						<tr>
							<td>是否启用验证码</td>
							<td>
								<input name="web[main][is_yzm]" value="1" type="radio" title="开启验证码" {{$main_is_yzm['1']}}>
								<input name="web[main][is_yzm]" value="0" type="radio" title="关闭验证码" {{$main_is_yzm['0']}}>
							</td>
						</tr>
						<tr>
							<td>认证成功赠送</td>
							<td>
								<input name="web[main][is_give]" value="0" type="radio" title="开启验证码" {{$main_is_give['0']}}>
								<input name="web[main][is_give]" value="1" type="radio" title="积分"   {{$main_is_give['1']}}>
								<input name="web[main][is_give]" value="2" type="radio" title="人民币" {{$main_is_give['2']}}>
							</td>
						</tr>
						<tr>
							<td>赠送数量</td>
							<td>
								<input name="web[main][give]" class="layui-input" type="number" value="{{$data['main']['give']}}">
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<php> hook_listen('admin_renzheng_setting_tpl_main',$data) </php>
		</div>
	</div>
	<table class="layui-table  my-tabel">
		<tbody>
			<tr>
				<input type="hidden" name="step" id="step" value="post" />
				<td colspan="2" class="my_button"><button class="layui-btn">立即设置</button></td>
			</tr>
		</tbody>
	</table>

</form>	
			 
<script>
//注意：选项卡 依赖 element 模块，否则无法进行功能性操作
layui.use(['element','form'], function(){
  var element = layui.element,form = layui.form;
  
  //…
});
</script>
<php>
	$this->display(tpl('foot'));
</php>